import Vue from 'vue'

export function getDemandLists(opts) {
    console.log('opts是什么鬼？', opts);
    return Vue.axios.post('/needsToSupplier/listFindNeeds.do', {
        state: opts.status,
        postCode: opts.jobName,
        needsCode: opts.demandNo,
        employeeName: opts.sendName,
        pageNum: opts.currentPage,
        pageSize: opts.pageSize,
    });
}
export function getDemandDetails(opts) {
    return Vue.axios.post('/needsToSupplier/getdemtById.do', {
        needsCode: opts.needId
    });
}
export function takeOverDemandInfo(opts) {
    return Vue.axios.post('/needsToSupplier/updateNeedsToSupplier.do', {
        needsId: opts.needId
    });
}
export function getExportDemandLists(opts) {
    return Vue.axios.post('/needsToSupplier/exportListNeedsToSupplier.do', {
        state: opts.status,
        postCode: opts.jobName,
        needsCode: opts.demandNo,
        employeeName: opts.sendName
    });
}